Prediction apparatus, prediction method and program

ABSTRACT

A prediction device for predicting a motion vector of a coding target block in coding of a composite image formed by combining multiple viewpoint images includes: a storage unit that stores a first predicted motion vector indicating a predicted motion vector candidate; and an update unit that if a predetermined condition is met, generates a second predicted motion vector that is a vector indicating a pixel in an adjacent viewpoint, the pixel being located at a position that is same as a position of the coding target block, and stores the second predicted motion vector the storage unit.

TECHNICAL FIELD

The present invention relates to a prediction device, a predictionmethod and a program.

BACKGROUND ART

In inter coding in H.265/HEVC (High Efficiency Video Coding), motionvector prediction (MVP) is performed and only a predicted motion vectordifference is transmitted. Consequently, motion vector informationnecessary for decoding is efficiently transmitted. Predicted motionvectors are created in the following order of priority. First, a maximumof two predicted motion vectors are created in a spatial direction, andnext, a maximum of one predicted motion vector is created in a temporaldirection, and then, lastly, a zero vector is added. Here, a predictedmotion vector in a spatial direction is a copy of a motion vector of aperipheral coded block. The order of priority for peripheral codedblocks, a motion vector of which is to be copied, is determined inadvance based on a positional relationship between a coding target blockand the coded blocks. Also, a predicted motion vector in a temporaldirection is a copy of a motion vector in a coded block in a codedpicture (reference picture), the coded block being located at a positionthat is the same (same coordinates) as that of a coding target block ina current picture. When two predicted motion vectors have been created,the motion vector prediction ends, and an index indicating whichpredicted motion vector of the two predicted motion vectors is used forprediction and a predicted difference are transmitted.

Also, as one of techniques each determined as an HEVC extension standardfor screen contents, there is IBC (intra block copy). IBC is a techniquethat performs inter prediction using a coded area of a current pictureas a reference picture (for example, Non-Patent Literature 1). Motionvector search and motion vector prediction in IBC are performed in aprocedure that is similar to that of inter prediction in HEVC. However,a current picture is stored in a reference picture set as a long-termreference picture. Therefore, in IBC, unlike normal motion vectorprediction, neither scaling of a predicted value of a motion vectoraccording to a distance between frames is performed nor a motion vectorbased on a frame other than a current frame is used as a predictedvalue.

In order to provide a high level of realism, representation of smoothmotion parallax is important. As a method for representation of motionparallax, there is multi-view display, which, however, involvesswitching of viewing spaces. In super multi-view display or high-densitydirectional display with an enhanced directional density of multi-viewdisplay, motion parallax is smoothed; however, in order to representcontinuous motion parallax, a large number of images are required.Therefore, a display technique that represents continuous motionparallax with a small number of images by linearly blending a pluralityof images has been proposed. Linear blending is a technique thatgenerates an image for a viewpoint located between adjacent two cameras(hereinafter referred to as “intermediate viewpoint”) by performinglinear interpolation of two images respectively picked up by the twocameras (for example, Non-Patent Literature 2). A display that providesglasses-free 3D (three-dimensional) display using linear blending iscalled a “linear blending display” (for example, Non-Patent Literature3). A linear blending display can display different light rays dependingon the viewpoint directions. A linear blending display generates imagescorresponding to intermediate viewpoints from multiple viewpoint imagespicked up by a camera array and outputs images according to positions ofviewpoints. Consequently, a viewer can view an image corresponding to aposition of a viewpoint that changes along with movement, enablingprovision of a stereoscopic effect.

Note that an input to a linear blending display is, for example, asillustrated in FIG. 5, an image formed by combining multiple viewpointimages obtained by images for respective viewpoints be ng sub-sampledand then being vertically stacked. Also, FIG. 6 illustrates an exampleof a configuration of a linear blending display. As illustrated in thefigure, for example, a multi-viewpoint image in which pixels formingrespective light rays for viewpoint A, viewpoint B and viewpoint C arearranged in order is input to a liquid-crystal panel. Then, theconfiguration is made so that only respective corresponding light raysreach viewpoint A, viewpoint B and viewpoint C. Also, light rays for aplurality of viewpoints adjacent to each other are mixed at a mixtureratio according to a position of an intermediate viewpoint, therebyforming a light ray for the intermediate viewpoint. Consequently, aglasses-free stereoscopic view is provided. As illustrated in thefigure, for example, a light ray for an intermediate viewpoint that isequally distant from viewpoint A and viewpoint B is a light ray in whichthe light ray for viewpoint A and the light ray for viewpoint B aremixed at a mixture ratio of 5:5.

CITATION LIST Non-Patent Literature

-   Non-Patent Literature 1: M. Budagavi, et al., “AHG8: Video coding    using Intra motion compensation,” Joint Collaborative Team on Video    Coding (JCT-VC) of ITU-T SC 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11,    13th Meeting: Incheon, Korea, 18-26 Apr. 2013.-   Non-Patent Literature 2: M. Date et al., “Real-time viewpoint image    synthesis using strips of multi-camera images,” Proc. of SPIE-IS&T,    Vol. 9391 939109-7, 17 Mar. 2015.-   Non-Patent Literature 3: Munekazu Date, et al., “Flat Panel    Visually-equivalent Light Field 3D Display”, 22nd Conference    Proceedings of the Virtual Reality Society of Japan, 1B4-04,    September 2017.

SUMMARY OF THE INVENTION Technical Problem

In the case of an image formed by combining multiple viewpoint images,in predictive coding, a block at a same position in an image for anotherviewpoint can be referred to, enabling making a prediction residualsmall.

In this case, a motion vector of the block at the same position in theimage for the other viewpoint is considerably large in comparison with anormal temporal direction motion vector. Therefore, motion vectorprediction is important. However, for example, in the part of a boundarybetween the foreground and the background, normal motion vector searchand IBC mingle, and thus, motion vector prediction is not properlyperformed, causing the problem of an increase in code amount.

An object of the present invention, which has been made in view of suchcircumstances, is to provide a technique that enables efficientcompression of an image formed combining multiple viewpoint images.

Means for Solving the Problem

An aspect of the present invention provides a prediction device forpredicting a motion vector of a coding target block in coding of acomposite image formed by combining multiple viewpoint images, theprediction device including: a storage unit that stores a firstpredicted motion vector indicating a predicted motion vector candidate;and an update unit that if a predetermined condition is met, generates asecond predicted motion vector that is a vector indicating a pixel in anadjacent viewpoint, the pixel being located at a position that is sameas a position of the coding ta block and stores the second predictedmotion vector in the storage unit.

Also, an aspect of the present invention provides the above predictiondevice in which the predetermined condition is a condition that thecomposite image ii which the coding target block is included and acomposite image referred to for generating the second predicted motionvector are a same composite image.

Also, an aspect of the present invention provides the above predictiondevice in which the predetermined condition is a condition that thecoding target block is not a block included in an uppermost viewpoint inthe composite image.

Also, an aspect of the present invention provides the above predictiondevice in which the predetermined condition is a condition that aviewpoint corresponding to a block that an adjacent block refers to forgenerating the first predicted motion vector and a viewpointcorresponding to an image to which the coding target block belongs arenot adjacent to each other.

Also, an aspect of the present invention provides a prediction devicefor predicting a motion vector of a coding target block in coding of acomposite image formed by combining multiple viewpoint images, theprediction device including: a storage unit that stores a firstpredicted motion vector indicating a predicted motion vector candidate;and an update unit that if there are a plurality of the first predictedmotion vectors stored in the storage unit, generates a second predictedmotion vector that is a vector indicating a pixel in an adjacentviewpoint, the pixel being located at a position that is same as aposition of the coding target block, and overwrites one of the firstpredicted motion vectors, whichever is lower in priority, with thesecond predicted motion vector.

Also, an aspect of the present invention provides a prediction methodfor predicting a motion vector of a coding target block in coding of acomposite image formed by combining multiple viewpoint images, theprediction method including: a storage step of storing a first predictedmotion vector indicating a predicted motion vector candidate; and anupdate step of if a predetermined condition is met, generating a secondpredicted motion vector that is a vector indicating a pixel in anadjacent viewpoint, the pixel being located at a position that is sameas a position of the coding target block, and storing the secondpredicted motion vector.

Also, an aspect of the present invention provides a program for causinga computer to function as the above prediction device.

Effects of the Invention

The present invention enables efficient compression of an image formedby combining multiple viewpoint images.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram illustrating a functional configuration of aprediction device 1 according to an embodiment of the present invention.

FIG. 2 is a block diagram illustrating a functional configuration of anadjacent viewpoint motion vector generation unit 12 in the predictiondevice 1 according to an embodiment of the present invention.

FIG. 3 is a flowchart illustrating operation of the prediction device 1according to an embodiment of the present invention.

FIG. 4 is a flowchart illustrating operation of the adjacent viewpointmotion vector generation unit 12 in the prediction device 1 according toan embodiment of the present invention.

FIG. 5 is a diagram for describing a linearly blended input image.

FIG. 6 is a diagram for describing a configuration of a linear blendingdisplay.

DESCRIPTION OF EMBODIMENTS Embodiment

A prediction device, a prediction method and a program according to anembodiment of the present invention are intended to be used for codingof an image formed by combining multiple viewpoint images, and ischaracterized in that if a predetermined condition is met, one of twopredicted motion vectors stored in advance, whichever is lower inpriority, is overwritten with a motion vector indicating a block in animage for a viewpoint adjacent to a viewpoint corresponding to an imageto which a coding target block belongs, the block being located at aposition that is the same as that of the coding target block. Theprediction device, the prediction method and the program according to anembodiment of the present invention will be described below withreference to the drawings.

[Configuration of Prediction Device]

FIG. 1 is a block diagram illustrating a functional configuration of aprediction device 1 according to an embodiment of the present invention.As illustrated in FIG. 1, a prediction device 1 includes a control unit10, a spatial direction motion vector prediction unit 11, an adjacentviewpoint motion vector generation unit 12, a temporal direction motionvector prediction unit. 13, a zero vector generation unit 14 and apredicted motion vector storage unit 15.

Information pieces to be input to the prediction device 1 according tothe present embodiment are “coding target block information”, an“adjacent block motion vector”, an “other picture block motion vector”and a “reference picture number”. The “coding target block information”is information representing coordinates of a coding target block. The“adjacent block motion vector” is a motion vector of a block adjacent tothe coding target block. The “other picture block motion vector” is amotion vector of a block in a coded picture, the block being located ata position that is the same as a position of the coding target block ina current picture. The “reference picture number” is a number indicatinga reference picture for the coding target block. Note that these inputinformation pieces are information pieces that are similar to inputinformation pieces to be used for motion vector prediction inH.265/HEVC.

Note that a configuration of a coding target image is determined inadvance. In other words, a width of images for respective viewpointsincluded in a composed multi-view image is fixed over an entire GOP(group of pictures). Information indicating a configuration of a codingtarget image such as the above is transmitted, for example, in such amanner that the information is included in header information such as anSPS (sequence parameter set).

The control unit 10 controls operation of the respective functionalblocks included in the prediction device 1. For example, the controlunit 10 recognizes the number of predicted motion vectors stored in thepredicted motion vector storage unit. 15 and controls operation of therespective functional blocks based on the number of predicted motionvectors (for example, by determining whether or not the number ofpredicted motion vectors is less than two).

The spatial direction motion vector prediction unit 11 acquires codingtarget block information and an adjacent block motion vector from anexternal device. The spatial direction motion vector prediction unit 11performs spatial direction motion vector prediction based on theacquired coding target block information and the adjacent block motionvector under the control by the control unit 10. Consequently, as in thecase of H.265/HEVC, a maximum of two predicted motion vectors in aspatial direction (hereinafter referred to as “spatial directionpredicted motion vectors”) are generated.

The spatial direction motion vector prediction unit 11 stores thegenerated spatial direction predicted motion vector(s) in the predictedmotion vector storage unit 15. Also, the spatial direction motion vectorprediction unit 11 outputs the generated spatial direction predictedmotion vector (s) to the adjacent viewpoint motion vector generationunit 12.

The adjacent viewpoint motion vector generation unit 12 acquires thespatial direction predicted motion vector(s) output from the spatialdirection motion vector prediction unit 11. Also, the adjacent viewpointmotion vector generation unit 12 acquires the coding target blockinformation and a reference picture number from the external device. Theadjacent viewpoint motion vector generation unit 12 performs adjacentviewpoint prediction based on the acquired spatial direction predictedmotion vector, the acquired coding target block information and theacquired reference picture number. The adjacent viewpoint motion vectorgeneration unit 12 updates the predicted motion vector (s) stored in thepredicted motion vector storage unit 15, based on a prediction result ofthe adjacent viewpoint prediction. Note that a further detailedconfiguration of the adjacent viewpoint motion vector generation unit 12and details of processing for the adjacent viewpoint prediction will bedescribed later.

The temporal direction motion vector prediction unit 13 acquires thecoding target block information and an other picture block motion vectorfrom the external device. The temporal direction motion vectorprediction unit 13 performs temporal direction motion vector predictionbased on the acquired coding target block information and the acquiredother picture block motion vector under the control by the control unit10. Consequently, as in the case of H.265/HEVC, a maximum of onepredicted motion vector in a temporal direction (hereinafter referred toas “temporal direction predicted motion vector”) is generated. Thetemporal direction motion vector prediction unit 13 stores the generatedtemporal direction predicted motion vector in the predicted motionvector storage unit 15.

The zero vector generation unit 14 further stores a zero vector in thepredicted motion vector storage unit 15 until the number of vectors(predicted motion vector candidates) stored in the predicted motionvector storage unit 15 becomes two, under the control by the controlunit 10.

The predicted motion vector storage unit 15 stores the predicted motionvectors (hereinafter referred to as “predicted vector candidates”) to beoutput to the external device. The predicted motion vector storage unit15 is provided by, for example, a flash memory, a HDD (hard disk drive),an SDP (solid-state drive), a RAM (random access memory; readable andwritable memory), a register or the like.

[Configuration of Adjacent Viewpoint Motion Vector Generation Unit]

The configuration of the adjacent viewpoint motion vector generationunit 12 will be described in further detail below.

FIG. 2 is a block diagram illustrating a functional configuration of theadjacent viewpoint motion vector generation unit 12 in the predictiondevice 1 according to an embodiment of the present invention. Asillustrated in FIG. 2, the adjacent viewpoint motion vector generationunit 12 includes a reference picture condition determination unit 121, acoding target block coordinate condition determination unit 122, aspatial direction predicted motion vector condition determination unit123 and an adjacent viewpoint motion vector generation unit 124.

The reference picture condition determination unit 121 acquires areference picture number. The reference picture condition determinationunit 121 determines whether or not the acquired reference picture numberis 0. A reference picture number being 0 means that a picture to which acoding target block belongs (current picture) is referred to, that is, apicture to which a coding target block belongs and a picture that isreferred to are a same picture. Note that processing where the currentpicture is referred to is equivalent to performing IBC (intra blockcopy) mentioned above.

The coding target block coordinate condition determination unit 122acquires coding target block information. If the below condition is met,the coding target block coordinate condition determination unit 122determines whether or not the coding target block is a block included inan image corresponding to an uppermost viewpoint, based on the acquiredcoding target block information. Here, the condition is that thereference picture condition determination unit 121 determines that thecurrent picture is referred to, that is, that the reference picturenumber is 0.

The spatial direction predicted motion vector condition determinationunit 123 acquires spatial direction predicted motion vector(s). If thecoding target block coordinate condition determination unit 122determines that the coding target block is not a block included in animage corresponding to the uppermost viewpoint, the spatial directionpredicted motion vector condition determination unit 123 determineswhether or not the spatial direction predicted motion vector(s) refer toan adjacent viewpoint.

If the spatial direction predicted motion vector condition determinationunit 123 determines that the spatial direction predicted motionvector(s) do not refer to an adjacent viewpoint, the adjacent viewpointmotion vector generation unit 124 generates an adjacent viewpointpredicted motion vector. In this case, is two spatial directionpredicted motion vectors have already been stored in the predictedmotion vector storage unit 15, the adjacent viewpoint motion vectorgeneration unit 124 overwrites one of the two spatial directionpredicted motion vectors, whichever is lower in priority (for example, aspatial direction predicted motion vector generated later), with thegenerated adjacent viewpoint predicted motion vector.

[Operation of Prediction Device]

Operation of the prediction device 1 will be described below.

FIG. 3 is a flowchart illustrating operation of the prediction device 1according to an embodiment of the present invention.

First, the spatial direction motion vector prediction unit 11 acquirescoding target block information and an adjacent block motion vector. Thespatial direction motion vector prediction unit 11 performs spatialdirection motion vector prediction based on the acquired coding targetblock information and the acquired adjacent block motion vector (stepS01). Consequently, a maximum of two spatial direction predicted motionvectors are generated. The spatial direction motion vector predictionunit 11 stores the generated spatial direction predicted motion vector(s) in the predicted motion vector storage unit 15.

The adjacent viewpoint motion vector generation unit 12 acquires thespatial direction predicted motion vector(s) generated by the spatialdirection motion vector prediction unit 11. Also, the adjacent viewpointmotion vector generation unit 12 acquires the coding target blockinformation and a reference picture number. The adjacent viewpointmotion vector generation unit 12 performs adjacent viewpoint predictionbased on the spatial direction predicted motion vector(s), the codingtarget block information and the reference picture number (step S02).

The adjacent viewpoint prediction by the adjacent viewpoint motionvector generation unit 12 will be described in further detail below.

FIG. 4 is a flowchart illustrating operation of the adjacent viewpointmotion vector generation unit 12 in the prediction device according toan embodiment of the present invention.

First, the reference picture condition determination unit 121 acquiresthe reference picture number (step S201). The reference picturecondition determination unit 121 determines whether or not the acquiredreference picture number is 0 (step S202). If the reference picturecondition determination unit 121 determines that the reference picturenumber is not 0 (step S202: NO), the adjacent viewpoint predictionprocessing ends.

On the other hand, if the reference picture condition determination unit121 determines that the reference picture number 0 (step S202: YES), thecoding target block coordinate condition determination unit 122 acquiresthe coding target block information (step S203). The coding target blockcoordinate condition determination unit 122 determines whether or notthe coding target block is a block included in an image corresponding tothe uppermost viewpoint, based the acquired coding target blockinformation (step S204). If the coding target block coordinate conditiondetermination unit 122 determines that the coding target block is ablock included in an image corresponding to the uppermost viewpoint(step 3204: YES), the adjacent viewpoint prediction processing ends.

On the other hand, if the coding target block coordinate conditiondetermination unit 122 determines that the coding target block not ablock included in an image corresponding to the uppermost viewpoint(step S204: NO), the spatial direction predicted motion vector conditiondetermination unit 123 acquires the spatial direction predicted motionvector(s) (step S205). The spatial direction predicted motion vectorcondition determination unit 123 determines whether or not the spatialdirection predicted motion vector (s) refer to an adjacent viewpoint(step S206). If the spatial direction predicted motion vector conditiondetermination unit 123 determines that the spatial direction predictedmotion vector(s) refer to an adjacent viewpoint (step S206: YES), theadjacent viewpoint prediction processing ends.

On the other hand, if the spatial direction predicted motion vectorcondition determination unit 123 determines that the spatial directionpredicted motion vector(S) do not refer to an adjacent viewpoint (stepS206: NO), the adjacent viewpoint motion vector generation unit 124generates an adjacent viewpoint predicted motion vector (step S207).

Here, the adjacent viewpoint predicted motion vector only needs to beone that indicates a pixel at a position that is the same as that of thecoding target block, in an adjacent viewpoint. In other words, anadjacent viewpoint predicted motion vector is, for example, a vectorincluding a horizontal component of 0 and a vertical componentcorresponding to a pixel width for one viewpoint, in the composed inputimage illustrated in FIG. 5.

Where two spatial direction predicted motion vectors have already beenstored in the predicted motion vector storage unit 15, the adjacentviewpoint motion vector generation unit 124 overwrites one of the twospatial direction predicted motion vector, whichever is lower inpriority (for example, a spatial direction predicted motion vectorgenerated later), with the generated adjacent viewpoint predicted motionvector (step S208).

Then, the adjacent viewpoint prediction processing by the adjacentviewpoint motion vector generation unit 12 ends.

In this way, in adjacent viewpoint prediction, if three conditions, acurrent picture is referred to (reference picture number is 0), a codingtarget block is not a block included in an image corresponding to anuppermost viewpoint and spatial direction predicted motion vector(s) donot refer to an adjacent viewpoint, are met, an adjacent viewpointpredicted motion vector is generated.

Note that from among the three conditions above, the third condition(that is, the condition that spatial direction predicted motionvector(s) do not refer to an adjacent viewpoint) may be omitted.However, in general, in IBC, motion vectors of blocks adjacent to eachother tend to coincide with each other. Therefore, in a case where amotion vector of an adjacent block indicates another viewpoint and doesnot indicate a same position in an adjacent viewpoint, if such case isprioritized, a smaller predictive residual can be expected, and thus itis desirable to add the third condition.

Referring back to FIG. 3, description will be provided.

Next, the control unit 10 determines whether or not the number ofpredicted motion vectors stored in the predicted motion vector storageunit 15 is less than two step S03). If the control unit 10 determinesthat the number of predicted motion vectors stored in the predictedmotion vector storage unit 15 is not less than two (that is, two (thereare a plurality of predicted motion vectors)) (step S03: NO), thepredicted motion vector storage unit 15 outputs the stored two predictedmotion vectors as predicted motion vector candidates (step S07).

On the other hand, if the control unit 10 determines that the number ofpredicted motion vectors stored in the predicted motion vector storageunit 15 is less than two (step S03: YES), the temporal direction motionvector prediction unit 13 performs temporal direction motion vectorprediction based on the coding target block information and an otherpicture block motion vector (step S04). Consequently, a maximum of onetemporal direction predicted motion vector is generated. The temporaldirection motion vector prediction unit 13 stores the generated temporaldirection predicted motion vector in the predated motion vector storageunit 15.

Next, the control unit 10 determines whether or not the number ofpredicted motion vectors stored in the predicted motion vector storageunit 15 is less than two (step S05). If the control unit 10 determinesthat the number of predicted motion vectors stored in the predictedmotion vector storage unit 15 is not less than two (that is, two), thepredicted motion vector storage unit 15 outputs the stored two predictedmotion vectors as predicted motion vector candidates (step S07).

On the other hand, if the control unit 10 determines that the number ofpredicted motion vectors stored in the predicted motion vector storageunit 15 is less than two, the zero vector generation unit 14 adds a zerovector until the number of vectors (predicted motion vector candidates)stored in the predicted motion vector storage unit 15 becomes two (stepS06). Next, the predicted motion vector storage unit 15 outputs thestored two predicted motion vectors as predicted motion vectorcandidates (step S07).

Then, the operation of the prediction device 1 based on the flowchart inFIG. 3 ends.

As described above, the prediction device 1 according to an embodimentof the present invention predicts a motion vector of a coding targetblock in coding of an image (composite image) formed by combiningmultiple viewpoint images. The prediction device 1 includes: thepredicted motion vector storage unit 15 (storage unit) that stores apredicted motion vector candidate (first predicted motion vector); andthe adjacent viewpoint motion vector generation unit 12 (update unit)that if a predetermined condition is met, generates an adjacentviewpoint motion vector (second predicted motion vector) that is avector indicating a pixel in an adjacent viewpoint, the pixel beinglocated at a position that is same as a position of the coding targetblock, and stores the adjacent viewpoint motion vector in the predictedmotion vector storage unit 15.

In other words, the prediction device 1 according to an embodiment ofthe present invention adds a motion vector of a block in an image for anadjacent viewpoint, the block being located at a position that is thesame as, that of a coding target block, as a predicted vector. Becauseof including the above configuration, the prediction device 1 cancompress a video image formed by combining multiple viewpoint videoimages, more efficiently than the conventional coding methods.

A part or an entirety of the prediction device 1 in the above-describedembodiment may be implemented by a computer. In such case, the part orthe entirety of the prediction device 1 may be implemented by recordinga program for implementing functions of the part or the entirety of theprediction device 1 on a computer-readable recording medium and causinga computer system to read and execute the program recorded on therecording medium. Note that the “computer system” mentioned hereincludes an OS and hardware pieces such as peripheral devices. Also, the“computer-readable recording medium” refers to a portable medium such asa flexible disk, a magnetooptical disk, a ROM or a CD-ROM or a storagedevice such as a hard disk incorporated in the computer system.Furthermore, the “computer-readable recording medium” may include onethat dynamically holds a program for a short period of time like acommunication wire in a case where a program is transmitted via anetwork such as the Internet or a communication channel such as atelephone line and one that holds the program for a certain period oftime like a volatile memory inside a computer system that serves as aserver or a client in such case. Also, the program may be one intendedto implement some of the above functions, may be one that can providethe aforementioned functions in combination with the program alreadyrecorded in the computer system or may be implemented using hardwaresuch as a PLD (programmable logic device) or an FPGA (field programmablegate array).

Although embodiments of the present invention have been described abovewith reference to the drawings, the above embodiments are mere examplesof the present invention and it is clear that the present invent ion isnot limited to the above embodiments. Therefore, addition, omission,replacement and other changes of components are possible withoutdeparting from the technical idea and spirit of the present invention.

REFERENCE SIGNS LIST

-   -   1 prediction device    -   10 control unit    -   11 spatial direction motion vector prediction unit    -   12 adjacent viewpoint motion vector generation unit    -   13 temporal direction motion vector prediction unit    -   14 zero vector generation unit    -   15 predicted motion vector storage unit    -   121 reference picture condition determination unit    -   122 coding target block coordinate condition determination unit    -   123 spatial direction predicted motion vector condition        determination unit    -   124 adjacent viewpoint motion vector generation unit

1. A prediction device for predicting a motion vector of a coding targetblock in coding of a composite image formed by combining multipleviewpoint images, the prediction device comprising: a storage unit thatstores a first predicted motion vector indicating a predicted motionvector candidate; a processor; and a storage medium having computerprogram instructions stored thereon, when executed by the processor,perform to: if a predetermined condition is met, generates a secondpredicted motion vector that is a vector indicating a pixel in anadjacent viewpoint, the pixel being located at a position that is sameas a position of the coding target block, and stores the secondpredicted motion vector in the storage unit.
 2. The prediction deviceaccording to claim 1, wherein the predetermined condition is a conditionthat the composite image in which the coding target block is includedand a composite image referred to for generating the second predictedmotion vector are a same composite image.
 3. The prediction deviceaccording to claim 1, wherein the predetermined condition is a conditionthat the coding target block is not a block included in an uppermostviewpoint in the composite image.
 4. The prediction device according toclaim 1, wherein the predetermined condition is a condition that aviewpoint corresponding to a block that an adjacent block refers to forgenerating the first predicted motion vector and a viewpointcorresponding to an image to which the coding target block belongs arenot adjacent to each other.
 5. A prediction device for predicting amotion vector of a coding target block in coding of a composite imageformed by combining multiple viewpoint images, the prediction devicecomprising: a storage unit that stores a first predicted motion vectorindicating a predicted motion vector candidate; a processor; and astorage medium having computer program instructions stored thereon, whenexecuted by the processor, perform to: if there are a plurality of thefirst predicted motion vectors stored in the storage unit, generates asecond predicted motion vector that is a vector indicating a pixel in anadjacent viewpoint, the pixel being located at a position that is sameas a position of the coding target block, and overwrites one of thefirst predicted motion vectors, whichever is lower in priority, with thesecond predicted motion vector.
 6. A prediction method for predicting amotion vector of a coding target block in coding of a composite imageformed by combining multiple viewpoint images, the prediction methodcomprising: a storage step of storing a first predicted motion vectorindicating a predicted motion vector candidate; and an update step of ifa predetermined condition is met, generating a second predicted motionvector that is a vector indicating a pixel in an adjacent viewpoint, thepixel being located at a position that is same as a position of thecoding target block, and storing the second predicted motion vector. 7.A non-transitory computer-readable medium having computer-executableinstructions that, upon execution of the instructions by a processor ofa computer, cause the computer to function as the prediction deviceaccording to claim 1.